import 'package:fish_redux/fish_redux.dart';

class SearchViewState implements Cloneable<SearchViewState> {
  int type;
  List historyList = [];
  String keyword;
  String heroTag;

  String communityID;
  String communityName;
  String planID;
  String workID;
  int isAddress = 0;
  int status = 0;

  @override
  SearchViewState clone() {
    return SearchViewState()
      ..type = type
      ..historyList = historyList
      ..keyword = keyword
      ..heroTag = heroTag
      ..status = status
      ..workID = workID
      ..isAddress = isAddress
      ..planID = planID
      ..communityID = communityID
      ..communityName = communityName;
  }
}

SearchViewState initState(Map<String, dynamic> args) {
  return SearchViewState()
    ..type = args['type']
    ..communityID = args['communityID']
    ..communityName = args['communityName']
    ..planID = args['planID']
    ..workID = args['workID']
    ..status = args['status']
    ..heroTag = args['tag'];
}
